Jump to content
Sign in to follow this  
Cype_Revenge

Help with Spawn Civilian

Recommended Posts

I need help with Spawn Civilian

I must spawn a civilian (Civ1) with script on a marker (M1), and in its init I need to add a AddAction and disableAI:

this DisableAI 'ANIM'; this disableAI 'FSM';this disableAI 'MOVE';Civ1 = this addAction ["Marker", "marker.sqf"];

I found this here and works perfect:

createCenter civilian;

_group = createGroup Civilian;

_group createUnit ["C_man_1", (getMarkerPos "M1"), [], 5, "NONE"];

but where do I insert the AddAction?

Share this post


Link to post
Share on other sites

Your addAction has to be formatted like so

Civ1= this addAction ["Marker", {execVM"marker.sqf";}];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×