OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: angusjm on 23 Aug 2002, 23:20:17

Title: Action Menu
Post by: angusjm on 23 Aug 2002, 23:20:17
This probably has been discussed many times before, but can you add anything to the action menu?  Is it easy to do?  In one of the campaign missions you are able to.
Title: Re:Action Menu
Post by: Black_Feather on 23 Aug 2002, 23:37:01
aye its just

actionID = unitname addaction ["action name text thing","scriptname.sqs"]
Title: Re:Action Menu
Post by: Messiah on 23 Aug 2002, 23:42:16
and remember to remove the action in the script (unless you want it to be a repeating action):

unitname/objectname removeaction actionID

remember u dont have to add the action to the player (since that means it will run around with him) u can add it to and object so when u get close enuff u can use the action (like bis did with the bus timetable)