1.hmm, interesting, but say my bullet was slow enough to catch in the loop, how would i find its final position.
With a loop similar to this:
#loop
_pos = position _bullet
@alive _bullet: goto "loop"
?_time >= 2.8: exit
<insert drop[] stuff here>
Now, the final time
_pos is updated should be pretty close to the last position of the bullet...
Why
?_time >= 2.8: exit ?
Because OFP bullets 'live' only for roughly 3 secs, and without something like this you would get the drop[] 'created' in mid-air once the bullet exceeds it's lifetime...
after the bullet is fired, camcreate an object behind it in its wake, an object that wont disapeer after it hits somthing, like a bottle. then propel the bottle in the same direction and speed as the bullet using setvelocity, at the same velocity the bullet is going, after the bullet hits and disapeers, the bottle will hit in the same spot(same velocity) and will stop, then you just get the position of the bottle and delete it. and i could use that position, for my drop comand. possible?
Yeah, in theory that should work...
But, you would still need that fastest loop to get the bullets velocity and update the bottle's velocity... You can't just shove the bottle to some velocity...
And this means the object could actually 'overfly' a bit the bullets last position because the velocity could have just been updated and the loop starts over again and while the loop is restarting the bullet 'dies'...
But this could be more reliable than the position thingy...
Better use something less visible (and less destructable) than a bottle, like a game logic ("logic")... Dunno if gamelogics can be 'setVelocitied' though...
Worth a try, you never know...
ehhh i supose so but seems a bit how about cam creating a bullet set velocity it to the same speed of the rifle bullets then name it _bullet1 then target it with a camera so you know where it is
What good would this do
Then you would have a camera that points to the position where the bullet hit, that's all...
There is no function getPosWhereTheCameraPoints...
Or did I misunderstand something??