Advertisement

Author Topic: New tracers??  (Read 351 times)

0 Members and 1 Guest are viewing this topic.

Offline chops

  • Members
  • *
  • I'm a llama!
New tracers??
« on: 13 Jun 2003, 16:10:02 »
I've been trying, without success, to make a script where runway marker lights (from the addon) follow a bullet once fired, to look like tracer, as the OFP tracers are crap;

_missile = nearestObject [player,"M60"]

trace = "SmallRunwayMarkerGreen" camcreate [(getpos _missile select 0), (getpos _missile select 1), (getpos _missile select 2)]

trace inflame true

#loop
trace setpos [(getpos _missile select 0), (getpos _missile select 1), (getpos _missile select 2)]
 
? isNull _missile : exit
goto "loop"


the script is called from an event handler "fired".

it doesn't work at all and I have no idea what I'm doing. This is where i got to from playing with that bullet cam script.

Thanks!