Home   Help Search Login Register  

Author Topic: Difficult scripting? atleast for me  (Read 616 times)

0 Members and 1 Guest are viewing this topic.

Pandoz

  • Guest
Difficult scripting? atleast for me
« 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?

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Difficult scripting? atleast for me
« Reply #1 on: 26 Jan 2003, 00:09:08 »
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.
Ranger

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Difficult scripting? atleast for me
« Reply #2 on: 26 Jan 2003, 00:17:38 »
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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Pandoz

  • Guest
Re:Difficult scripting? atleast for me
« Reply #3 on: 26 Jan 2003, 05:06:29 »
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

Fox2

  • Guest
Re:Difficult scripting? atleast for me
« Reply #4 on: 29 Jan 2003, 05:30:09 »
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.

Pandoz

  • Guest
Re:Difficult scripting? atleast for me
« Reply #5 on: 31 Jan 2003, 05:57:08 »
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