Jump to content

Photo
- - - - -

spawn script problem


  • Please log in to reply
4 replies to this topic
Thread Starter
panda123
panda123

    Staff Sergeant

  • Members
  • 239 posts

  • Joined: 03-March 2010

Posted 14 April 2012 - 15:39 #1

Hi,
I have a little problem with a spawnscript. I have already posted in other thread because I thought it was a problem addon but apparently I have the same problem in vanilla too.
This is what I have posted.

Spoiler


What's wrong with this script ?

bigshotking
bigshotking

    Gunnery Sergeant

  • Members
  • 410 posts

  • Joined: 12-February 2011

Posted 14 April 2012 - 16:02 #2

Instead of createUnit, use createVehicle.

Thread Starter
panda123
panda123

    Staff Sergeant

  • Members
  • 239 posts

  • Joined: 03-March 2010

Posted 14 April 2012 - 16:57 #3

ok after I have to use createUnit to put inside the vehicle, I will see that, thanks.

I have found the solution thanks :)

Edited by panda123, 14 April 2012 - 17:07.


Justino
Justino

    Private First Class

  • Members
  • 26 posts

  • Joined: 22-July 2011

Posted 14 April 2012 - 23:16 #4

ok after I have to use createUnit to put inside the vehicle, I will see that, thanks.

I have found the solution thanks :)


I would recommend you use BIS_fnc_spawnVehicle

That will populate the vehicle with a crew for you, without having to use extra script functions.

Gunter Severloh
Gunter Severloh

    Uber Compiler

  • Members
  • 7063 posts

  • Joined: 14-April 2009

Posted 15 April 2012 - 06:47 #5

@panda123
for what your trying to do this script does exactly that:

AI vehicle respawn patrol area using UPS
http://www.armaholic...age.php?id=6543

you can review the script used and get other ideas, or use it as a reference, also see the demo on how its done and
then adjust your own where needed, or just use the script altogether.

WarMod Series - A Massive Addon & Mod Customizable Compilation mod for Arma1, Arma2,CO & Arma3 IFA3 - (IFA3WarMod)
Mission Repository - Hosting Missions & Files for Iron Front: Liberation 1944
WW2Epic - A Compilation Archive of Photos, Music, Videos, & References of WW2
AI Compilation List of Addons/Mods/Scripts & Misc for Arma3