Well i have a question. Title pretty much sums it up, but what im trying to do is to create a traceline for a, what you could almost call, FPS game now when version 1.2 is out. The camera itself is locked, so you cant turn, or move, but the mouse is free. So i have to, when shooting on targets, track the position of mouse, and when its over a unit -> set that unit in a unit varaible. Much like any other traceline, but i really dont have any experiance with mouse tracking and how it would work with the unit, since the units distance from the camera may differ from different situations.
I do have a unit, which is hidden, at the location of the camera.
Would appreciate help, on a quite low level, since i may not know the new functions that well!
Thanks in advance
PS: Just to clearify - The yaw of the camera is not movable, so ONLY the mouse can be moved.
if the camera is locked..traceline is not what you want, tracelines is used when you want to find whats in the CENTER of the camera when you can move th camera, if you can shoot anything on the screen at any place, then things become much much easier, simply looking were the mouse was clicked can get you what you want.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
Shoot
Events
Unit Selection - Any Unit is clicked by Player Any Player
Local Variables
Conditions
And
Conditions
(PlayerUnit[(Triggering player)] is alive) == true
AttackOnCooldown[(Triggering player)] == false
CurAmmo[(Triggering player)] > 0
Actions
Environment - Execute Ghost - C-10 Canister Rifle (Damage) on (Triggering unit) from PlayerUnit[(Triggering player)]
It did. The effect only deals damage, it does not play animation, create missiles, or anything else. Try it again and you will see that the unit is indeed damaged (assuming the trigger is bug-free).
I did this with my third person shooter. Because my camera was off I killed my own unit instead of the target. I fixed the camera and have a clear view of the target. When I tried it a second time, nothing happened.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey,
Well i have a question. Title pretty much sums it up, but what im trying to do is to create a traceline for a, what you could almost call, FPS game now when version 1.2 is out. The camera itself is locked, so you cant turn, or move, but the mouse is free. So i have to, when shooting on targets, track the position of mouse, and when its over a unit -> set that unit in a unit varaible. Much like any other traceline, but i really dont have any experiance with mouse tracking and how it would work with the unit, since the units distance from the camera may differ from different situations.
I do have a unit, which is hidden, at the location of the camera.
Would appreciate help, on a quite low level, since i may not know the new functions that well!
Thanks in advance
PS: Just to clearify - The yaw of the camera is not movable, so ONLY the mouse can be moved.
if the camera is locked..traceline is not what you want, tracelines is used when you want to find whats in the CENTER of the camera when you can move th camera, if you can shoot anything on the screen at any place, then things become much much easier, simply looking were the mouse was clicked can get you what you want.
@Molsterr
Shoot
Events
Unit Selection - Any Unit is clicked by Player Any Player
Local Variables
Conditions
And
Conditions
(PlayerUnit[(Triggering player)] is alive) == true
AttackOnCooldown[(Triggering player)] == false
CurAmmo[(Triggering player)] > 0
Actions
Environment - Execute Ghost - C-10 Canister Rifle (Damage) on (Triggering unit) from PlayerUnit[(Triggering player)]
didnt work
@doite: Go
It did. The effect only deals damage, it does not play animation, create missiles, or anything else. Try it again and you will see that the unit is indeed damaged (assuming the trigger is bug-free).
@obliviron: Go
I did this with my third person shooter. Because my camera was off I killed my own unit instead of the target. I fixed the camera and have a clear view of the target. When I tried it a second time, nothing happened.