Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Citizen Society RPG

Create scroll action to activate trigger...

Recommended Posts

After doing a search, i didnt come up with anything directly explaining how to do this. Can someone please explain or give an example of to activate a trigger (or whatever else would work the best) to attach an object to a car. I want to name the car and then have an action while inside the car called "Attach", and "detach". I do not wish to use radio triggers.

Thank you in advance.

-Alec

Share this post


Link to post
Share on other sites

Was wanting more of an "explanation or example"... not much help.

If I were to create a file called "ATTACHDETACH.sqf", what would be the contents of this file?

I have already tested the action menu and it works. I names the truck URAL, therfor when im in the URAL i get the action, now i just need a script to activate when i press the activation.

Edited by Citizen Society RPG

Share this post


Link to post
Share on other sites

Just wanted you to read and learn.

player addAction ["Choba", "chobado.sqs"]

this will give you an action with the name Choba, you can name it whatever you want but thats whats will be shown when you scroll the mouse.

That action will call a script called chobado.sqs.

Open up notepad and write this.

thingy attachTo [brum,[0,0,1]];

save that text as chobado.sqs

thingy is the name of the thing you want to attach and brum is the name of the car, you can change those name to whaterver you want.

put the chobado.sqs file in the mission folder of the mission you are making.

Edit: remember to change to all files when you are saving the script so you dont get a textfile called chobado.sqs.txt

Edited by zigzag

Share this post


Link to post
Share on other sites
Just wanted you to read and learn.

player addAction ["Choba", "chobado.sqs"]

this will give you an action with the name Choba, you can name it whatever you want but thats whats will be shown when you scroll the mouse.

That action will call a script called chobado.sqs.

Open up notepad and write this.

thingy attachTo [brum,[0,0,1]];

save that text as chobado.sqs

thingy is the name of the thing you want to attach and brum is the name of the car, you can change those name to whaterver you want.

put the chobado.sqs file in the mission folder of the mission you are making.

Edit: remember to change to all files when you are saving the script so you dont get a textfile called chobado.sqs.txt

Ohh, okay, i didnt realize that it would be identical to what i would put in the init line of the unit.

Thank you for explaining.

-Alec

Share this post


Link to post
Share on other sites
Sign in to follow this  

×