OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: srk on 26 Jun 2006, 01:54:49

Title: Removing actions
Post by: srk on 26 Jun 2006, 01:54:49
I wanted to make a mission using this (http://ofp.gamepark.cz/index.php?showthis=7753) addon, but I want to get rid off the nitro, etc. actions from the action lost. Is it possible to disable them somehow without modifying the config?
Title: Re: Removing actions
Post by: marcus3 on 26 Jun 2006, 04:28:08
Look in the config for the
bla bla = addaction 
then do

car removeaction bla bla

 :-*
Title: Re: Removing actions
Post by: srk on 26 Jun 2006, 10:11:01
Doesn't work, the actions are still there.
Title: Re: Removing actions
Post by: h- on 26 Jun 2006, 22:13:27
You can make a script run at the start of the mission:
Code: [Select]
vehiclename removeAction gofaster
vehiclename removeAction gofast

Or put that in some trigger or something..

That removes the nitro actions only, if you want to remove the door actions you need to remove the class userActions from the config..
Title: Re: Removing actions
Post by: srk on 27 Jun 2006, 18:15:59
You can make a script run at the start of the mission:
Code: [Select]
vehiclename removeAction gofaster
vehiclename removeAction gofast

Or put that in some trigger or something..

That removes the nitro actions only, if you want to remove the door actions you need to remove the class userActions from the config..

Cool, it works, but where did you get those names? (gofast, gofaster)
Title: Re: Removing actions
Post by: h- on 27 Jun 2006, 22:01:42
From the scripts inside the addon...

For some completely weird reason the nitro actions are added to the vehicle via a script (executed from the init eventHandler) using addAction, instead of using userActions...
IIRC the scripts were called init.sqs and init1.sqs...