Forum Jump :

Author Message


Posts: 46
Rank:


Level: Member

Country: de
Location:
Occupation:
Age: 21
In-game name: Joey

 
#1 Posted at 2013-05-31 11:28        
     
Hello,

I've made a car which is named "Car1". If it fills it's fuel at a fuel station, it should only be able to fill up to 50%. So It can't have over 50%.

Is there any way to script it? Via trigger maybe?


Author Message


Posts: 20251
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#2 Posted at 2013-05-31 12:09        
     
In trigger condition: fuel car1 > 0.5
In onactivation of trigger: car1 setFuel 0.5
Set the trigger to repeatidly!

The above might work/not work but I am sure these are the commands you need to use. So if it does not work check the wiki for proper syntax:
http://community.bistudio.com/wiki/fuel
http://community.bistudio.com/wiki/setFuel

This post was edited by Foxhound (2013-05-31 12:35, ago)

Visit my family webshop desteigerhoutshop.nl.





Tags: Amount, Car, Fuel