Jump to content
wraith676

Cannot spawn units for the life of me...

Recommended Posts

So i want to spawn a unit on myself via a radio trigger.

 

 

Do you think that i can get a unit to spawn at all. No.

 

I need some help.

 

Can someone explain why this doesnt work.

 

I have a script setup called Script.sqf

 

It contains

 

hint "spawned";

"SoldierWB" createUnit [position player, group player]; 
 
I have a trigger radio alpha.
 
In its On activation it has this:
 
dumvar = [] execVM "script.sqf"
 
The script runs and posts up the hint.
 
The script doesnt spawn a unit.
 
What am i doing wrong? Please enlighten me :)
 
Thanks for your time.
 
 
  • Like 1

Share this post


Link to post
Share on other sites

Don't use "SoldierWB" this needs to be the name for the soldier you want to spawn, for example, if you wanted a default soldier to spawn try this "B_Soldier_F" so it would be "B_Soldier_F" createUnit[position player, group player];

Let me know if it works :)

  • Like 1

Share this post


Link to post
Share on other sites

"SoldierWB" is a parent class for all blufor units.

"SoldierEB" is a parent class for all opfor units.

"SoldierGB" is a parent class for all indfor units.

  • Like 1

Share this post


Link to post
Share on other sites

Wow that worked.

 

Thank you very much SM_BJS that solved the issue that i was struggling with.

 

Davidoss you also managed to give me insight on the next problem and that was how to find the various units that i wanted to spawn.

 

I really do appreciate that guys. Thanks.

  • Like 1

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

×