Jump to content
Sign in to follow this  
Machine Gunner

createunit

Recommended Posts

Hello all! I'm not found a main thread about questions of OFP Editor and I Start new thread.

Need help. I'm write script with dynamic respawn units. Here it is:

;//Meaux Guard.

Grp=objnull

;=========Squad Respawn==============

"WW4_REVEMachinegun" createunit [ [4522.658691,17.272085,9425.594727], group Grp, "[This] Exec ""Spawn\Meaux\MGInit.sqs""",1]

But it not working, Unit not respawn.

I call it in Init.sqs:

;//Init Meaux

[MAC] exec "Ammo\AmmoCrate.sqs"

[MAC2] exec "Ammo\AmmoCrate_RPG.sqs"

[] exec "Spawn\Meaux\Guard.sqs"

Please - help. Thanks.

Edited by Machine Gunner

Share this post


Link to post
Share on other sites

WW4_REVEMachinegun" createunit [ [4522.658691,17.272085,9425.594727], group Grp, "[This] Exec ""Spawn\Meaux\MGInit.sqs"",1]"

You have written " in bad place

Edited by guziczek101

Share this post


Link to post
Share on other sites
WW4_REVEMachinegun" createunit [ [4522.658691,17.272085,9425.594727], group Grp, "[This] Exec ""Spawn\Meaux\MGInit.sqs"",1]"

You have written " in bad place

If I right understand you.

I make next:

"WW4_REVEMachinegun" createunit [ [4522.658691,17.272085,9425.594727], group SPDummy, "[This] Exec ""Spawn\Meaux\MGInit.sqs"",1]

But and it not working...

Share this post


Link to post
Share on other sites

"WW4_REVEMachinegun" createunit [[4522.658691,17.272085,9425.594727], group SPDummy, "[this] exec ""Spawn\Meaux\MGInit.sqs""",1]

That should do it, there was a quotation mark missing in the end of the script part.

Share this post


Link to post
Share on other sites
Hello all! I'm not found a main thread about questions of OFP Editor and I Start new thread.

Need help. I'm write script with dynamic respawn units. Here it is:

;//Meaux Guard.

Grp=objnull

;=========Squad Respawn==============

"WW4_REVEMachinegun" createunit [ [4522.658691,17.272085,9425.594727], group Grp, "[This] Exec ""Spawn\Meaux\MGInit.sqs""",1]

But it not working, Unit not respawn.

I call it in Init.sqs:

;//Init Meaux

[MAC] exec "Ammo\AmmoCrate.sqs"

[MAC2] exec "Ammo\AmmoCrate_RPG.sqs"

[] exec "Spawn\Meaux\Guard.sqs"

Please - help. Thanks.

group grp - unit with name 'grp' should exist. You don't have any syntax problems...

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  

×