Welcome, Guest Wednesday 23rd April 2014, 15:22:55
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: New tracers??  (Read 334 times)
0 Members and 1 Guest are viewing this topic.
chops
*
Offline Offline


I'm a llama!


« on: 13 Jun 2003, 15: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!
Logged
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: