Attach a trigger to a vehicule


(pred4to5) #1

Hello again…
I have a problem, i want to attach a trigger, to capture a gold in an active train. I created the tag for the master script_mover and i attached the trigger with attachtotag command, but it didn’t work. I saw that i need a brush with two classnames: script_mover and trigger_flagonly_multiple but this is impossible.
Is there a solution?
(sorry for bad english)


(Zer0Cool) #2

I suppose you know how Tags work (not?),
you need as you said a main script_mover with a model2 key, on that you can attach what ever you want (limit is 64 attachments).


(pred4to5) #3

I’ve followed this tutorial but i can attach only misc_gamemodels. I need an target_script_trigger?
If yes, how i use it?


(Zer0Cool) #4

afaik you don’T need a target_script_trigger. what happens when you try to attach the trigger_flagonly_multiple? does your trigger_flagonly_multiple have a origin?


(pred4to5) #5

I tryed to put a origin, with the same values but appears an error ; set brush model: null


(Zer0Cool) #6

http://www.file-upload.net/download-2116033/moving_flag.pk3.html

here a working example, deliver the object (landmine) to the stone which will start moving after 10 seconds.


(pred4to5) #7

Thanx ZeroCool for all! Now i understand with this prefab, it worked! :slight_smile: