Forum Jump :

Author Message

Posts: 46

Level: Member

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

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

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

Level: Super Admin

Country: nl
Location: The Netherlands
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:

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

Visit my family webshop

Tags: Amount, Car, Fuel