OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: m21man on 23 Jul 2003, 04:47:15

Title: Please Assist: Deployment Script
Post by: m21man on 23 Jul 2003, 04:47:15
I can't get this bloody script to work >:(. I need it for a mission. It works good for the first few times, then it starts adding "Redeploy"s when I don't need them. Please help :'(. Oh, and this mission needs the 1.75+ M60 machinegun pack from Tales of War (http://www.ofp.info/talesofwar/). It's worth it if ya don't have it.

The Script itself requires a man named "mgunr", a machinegun named "mgun", and an object in a safe place called "safeobj".
Title: Re:Please Assist: Deployment Script
Post by: deaddog on 23 Jul 2003, 05:43:40
mgunr removeaction 1

You can't use a fixed number with the removeaction command.  Every time the addaction command is used, it returns a new ID number.  Try this instead:

actionid=mgunr addaction blahblah

and then later,

mgunr removeaction actionid.

Use a different variable name for each addaction if you use more than one.
Title: Re:Please Assist: Deployment Script
Post by: m21man on 23 Jul 2003, 07:52:54
Thanks for the help :). I got the script to work (Finally!) 8).