Posts: 5
Threads: 3
Joined: Dec 2011
Reputation:
0
I saw the helicopter mode. Is it possible to make its appearance at once on the ground, without the radar?
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(07-03-2012, 17:09)evgen2307RUS Wrote: I saw the helicopter mode. Is it possible to make its appearance at once on the ground, without the radar?
Yes, making it appear on ground is possible, but it will fit wrongly with it ( most times ).
Posts: 7
Threads: 1
Joined: Jul 2012
Reputation:
0
Can you give the script to see?
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(07-04-2012, 12:45)Estonia456 Wrote: Can you give the script to see?
Is just change the position where it spawns.
Posts: 7
Threads: 1
Joined: Jul 2012
Reputation:
0
So ... You can tell how to do, because I'm a beginner (not quite)
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(07-04-2012, 13:50)Estonia456 Wrote: So ... You can tell how to do, because I'm a beginner (not quite)
Find on your helicopter script something that says "SpawnHelicopter", then put after the second "," this:
Code: bulletTrace( self.origin, self.origin - ( 0, 0, 100000 ), false, self )[ "position" ]
An example of how it should look:
Code: chopper = spawnHelicopter( self, bulletTrace( self.origin, self.origin - ( 0, 0, 100000 ), false, self )[ "position" ], self.angles,"cobra_mp", CONST_HELI_MODEL );
Posts: 2,157
Threads: 120
Joined: Apr 2011
Reputation:
71
(07-04-2012, 14:03)Yamato Wrote: Code: bulletTrace( self.origin, self.origin - ( 0, 0, 100000 ), false, self )[ "position" ]
Remember to add an Z offset (for example + (0, 0, 200)) since the helicopter model is pretty big.
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(07-04-2012, 15:27)Rendflex Wrote: (07-04-2012, 14:03)Yamato Wrote: Code: bulletTrace( self.origin, self.origin - ( 0, 0, 100000 ), false, self )[ "position" ]
Remember to add an Z offset (for example + (0, 0, 200)) since the helicopter model is pretty big.
Yes, I didnt remember about that, also, that offset will change depending on the model, some helis have its origin in the rotor and others in other parts.
|