Jump to content
Sign in to follow this  
quakergamer

Set speed & condition field in config.cpp

Recommended Posts

Hello all,

In teh config.cpp in the

class UserActions

{

};

You can set multiple user actions with a condition. How can I set the condition to be condition= "altitude this > 1 and altitude this < 400"; Basically, the altitude of the plane is between 1 and 400 ...

Also how can I set the speed in a script. I've tried multiple things but I get an error each time :S.

Thanks !!

Share this post


Link to post
Share on other sites

class corwingu

{

displayName="Execute Script";

position="canopy";

radius=2

condition="driver this == player and (getpos this select 2) > 1 and getpos this select 2 < 400";

statement="[this] exec ""\addondir\myscript.sqs""";

};

That useraction will appear only for the driver and when there is a driver and altitude is greater than 1 and less than 400 meters

Setting the speed of a vehicle? Denoir had a nice equation i kph that i need to find out there in the forums using setvelocity

Share this post


Link to post
Share on other sites
class corwingu

{

displayName="Execute Script";

position="canopy";

radius=2

condition="driver this == player and (getpos this select 2) > 1 and getpos this select 2 < 400";

statement="[this] exec ""\addondir\myscript.sqs""";

};

   

That useraction will appear only for the driver and when there is a driver and altitude is greater than 1 and less than 400 meters

Setting the speed of a vehicle? Denoir had a nice equation i kph that i need to find out there in the forums using setvelocity

Thanks!

I will also search aswell. But isn't there a setSpeed or something :S ?

Share this post


Link to post
Share on other sites
Thanks!

I will also search aswell. But isn't there a setSpeed or something :S ?

Whatevers in the ComReference is all we got

Share this post


Link to post
Share on other sites
Thanks!

I will also search aswell. But isn't there a setSpeed or something :S ?

Whatevers in the ComReference is all we got

Looks like I will have to use set velocity!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×