Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2012-06-28 01:45        
     
Allo allo people,
I'm fairly new to scripting (but made some major strides by dissecting some missions) and I came to small standstill with a mission I've been working on. I've set a trigger up to set fuel on a car to 0. Now what I had planned was the player to find a jerry can and bring it over to the car to fill it up again.

I was thinking on setting up a trigger to check if the jerry can was within the trigger range (but I am not sure how to activate triggers on specialized objects, if this is even possible).
If there are any alternatives to this I am more than happy to hear.
------------
After some trial and error I got it working!
-----
And not so much anymore. I've set up an object and grouped it with a trigger. It shoots off a hint once it is detected in the area, now my problem comes when I attach the trigger to a vehicle, it doesn't want to fire out the OnAct commands for some reason. I'm stumped.


Trigger
Con: can in thislist
Onact : u1 setFuel 1; titleText ["Truck refueled","PLAIN"]; gas attachto [u1,[0,0,0]];
that is grouped up with a fuel can and a pickup script I found.

This post was edited by Allan-p (2012-06-28 08:57, ago)


Author Message


Posts: 30
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age: 27
In-game name: KarovMac

 
#2 Posted at 2013-01-27 23:56        
     
which pickup script did you use?






Tags: Can, Fuel, Jerry