Home   Help Search Login Register  

Author Topic: setpos, camcreate and my handheldflare  (Read 595 times)

0 Members and 1 Guest are viewing this topic.

Azraell

  • Guest
setpos, camcreate and my handheldflare
« on: 22 Nov 2002, 21:56:52 »
hi :D

 

im trying to get a flare to be on the ground in front of my guy like he threw it down(for helos and such)...heres what i have been working on....

flare1="flare" camcreate [getpos flog select 0,getpos flog select 1,100]

flog setpos [getpos s1 select 0, getpos s1 select 1,0]

~1

#loop

flare1 setpos [getpos flog select 0,getpos flog select 1,50]

goto "loop"


....now, it works and all, if i know how high the terrain im standing on at that time is  ....its not following the terrain height, 50meters above the ground in one spot is under the mountain in another... :-\

flog is a logic, s1 my dude...how do i get flog to setpos on the correct terrain height? i know everything is prolly wrong in this, i dont know much about it. a little help would be greatly appreciated :)

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:setpos, camcreate and my handheldflare
« Reply #1 on: 23 Nov 2002, 05:39:34 »
angel of death (AC-130, WB or original reference):
the answer you seek:
A. Flares fuze 2 seconds after camcreate, and burn for 15 seconds after that.
B. Use createvehicle with 1.90 +
C. In one second, a Flare will drop something like 6.4 m, so keep the updates faster than that.
D. better yet, see if setvelocity works.  Often, it only works after a setpos, so use it with that.
E. For ASL calculations, setpos a trigger under the location.  Getpos MyTrigger select 2 will return the difference between AGL and ASL.

Good Luck and Godspeed
Dinger/Cfit

Azraell

  • Guest
Re:setpos, camcreate and my handheldflare
« Reply #2 on: 23 Nov 2002, 08:05:43 »
hey thnks for the input, but still no luck :'(... flares arent recognized as vehicles..... and i keep getting an error that says "Azzy, u suck at scripting" :-[   ....then itll say what i put should have been an array, so i give it what it wants, then it reverses itself and demands an object instead of that array, and etc, etc....  :hmm: :noo: >:(
think ill just push that aside and use my addaction i had going to bring in my chopper :beat:... thnks anyhow :D