OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pandoz on 24 Jan 2003, 23:37:03
-
hmm im actually done with a beta version of my helo gun-run script...but i dont know how to do it so that the helis direction is detected, then passed onto the script so the bullet line then detects that angle and moves the bullet line to the target....ummm that make any sense...like watch
[HELI] <---that the heli that the guy----> [GUY]
i want the script to detect the heli going at the guy then once its near enough i want the line of bullets to start between the heli and guy(the gunrun is the line of bullets that are camcreated)...but i have NO CLUE how to do this? i need it to detect any angle/direction of the heli to the guy. is any of this remotely possible?
-
There are no commands that allow you to manipulate the angle of an object, so your idea unfortunately is impossible.
I think there's a function in the function reference that allows you find the direction from one object to another. Maybe it was a script snippet. But, that would only solve one aspect of your problem.
-
wt bout
getdir and setdir ?
getdir checks wich angel da object is facing and setdir sets da angel da object is facing also check da function referance 4 more angles scripts ;)
LCD OUT
-
ya thanx...i was just trying to get it to detect the angle...getdir and then set the direction in which the bullets go instead of camcreate and then adjust the x,y,and z #'s manually
-
You should try to speak with Jostapo in the Editing Center. Come over to the chat room from the website sometime to find him. The claymore scripts he and Dinger wrote are superb, and right up your alley. Basically, it spawns 100-odd bullets in a cone-like pattern, then shorts them forth into their assigned directions/angles.
-
ya, thanx wolf ill try that. In fact, that might be a decent way to do it...having the bullets projected from an "object" which would be under the heli or the heli itself and at a 45 angle using that kind of scripting...hmm off to see the wizard...or atleast really good scripters