OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: icarus_uk on 05 Sep 2002, 20:00:26
-
How to? I want to create an object and give it a velocity. Creating an object is easy I can use camrcreate, but how can I give it an initial velocity, (not a setpos).
-
I can't & I don't think anybody else has, the only way is setpos but thats cheating & fake.
-
Its for an arty script. I want to make my bombs drop with a nice arc. Any ideas anyone?
-
Heh. Right now my shells drop straight down.
Well, the way I'm going to try for the next version of my artillery suite is create mod-shells that start with an initial lateral velocity, and drop them like that.
In short, if you find a way to impart velocity to objects via a scripting command, please let me know.
-
hmmmm - in resistance i think there is something like what you want - well i know people have made cluster bombs that have projectile arches, so maybe u could put that in a script (unless its addon only stuff )
-
Yes, that's the drop command. I confess to not having looked into it that deeply. My concerns were that
A. Its variable update rate implies that the object is not really moving, but only being setpos'd. Does anyone know if collision detection works on dropped objects.
B. It didn't seem that dropped objects collide with objects beyond terrain. Is this true?
C. Can a dropped object be destroyed by impact, or do they have to time out?
D. Can you drop a shell, or just an image of a shell?
-
No No No. Whats everyones fascination with resistance. 1985 people !
-
lol - ahhh an 1985 man....
hmmmm
well as far as i know i dont think its possible without the drop command...
ummm....
any1 else know?
-
I have resistance, and the campaign is good (slowly getting through it), mut I make missions for a dedicated 1985 server. I need 1985 commands only. Im not happy that it cant be done. Its this or a stinking SetPos projectiles equation.
-
is it possible to get an objects velocity?
i know height is possible
cuase you could get those then use some physics equations (dunno how possible this is in a script)
for velocity etc
hmm, might need cos to be used etc
could get complicated
arg ive forgot all the physics i learned
im not really sure how it would work cuase im not that great at scripting
-
if yer in 1985, only method afaik is setposing, and if setposing, the unit doesnt actually have a velocity (its just stationary in lots of different places and teleports :))
You could always try using setpos to create the curvature (pushing it 5m towards the target and 2m down every 0.01), and check to see if the shell is like below 3ft, then explode, but tbh i think thats as close to realistic arty as u can get in 1985 :(