Home   Help Search Login Register  

Author Topic: making created units playable  (Read 1630 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
making created units playable
« on: 31 Aug 2007, 20:37:33 »
I was wondering if its possible to make created units (using a script) to also be playable. I am making an addaction menu for reinforcements and I know how to create a unit but it is not playable.


Thanks in advance.  :D
"Everyone dies so deal with it and move on"

                                                      ME

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: making created units playable
« Reply #1 on: 31 Aug 2007, 20:41:32 »
setPlayable comand i think :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: making created units playable
« Reply #2 on: 31 Aug 2007, 22:14:09 »
Does anyone know if the command is local or does it need to be made global (I presume at least on the server).

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: making created units playable
« Reply #3 on: 31 Aug 2007, 22:20:48 »
da SP comand (more what killzone asked 4 i think) is AddSwitchableunit

@ jasonO i donno... nd da wikicimmand referance has 1 very helpful line on it... "Multiplayer: Behaviour unknown. "

:D

LCD OUT
« Last Edit: 31 Aug 2007, 22:40:14 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re: making created units playable
« Reply #4 on: 31 Aug 2007, 22:35:20 »
LCD I appreciate the help but I dont get how to use it. I must admit the comref confuses the heck out of me   ???

it says:

setPlayable Ap

I dont know what ap is or how to use it in  a script

I Tried


"SoldierWSaboteurAssault" createunit [getpos supply,group (leader),"d = this",1,"Private"];

setPlayable leader

I also tried

"SoldierWSaboteurAssault" createunit [getpos supply,group (leader),"d = this",1,"Private"];

setPlayable D

Thinking that they wanted the units name but neither worked. Can you give me an example.

Thanks again. 
"Everyone dies so deal with it and move on"

                                                      ME

Offline Cheetah

  • Former Staff
  • ****
Re: making created units playable
« Reply #5 on: 31 Aug 2007, 22:40:05 »
Code: [Select]
soldier = "SoldierWSaboteurAssault" createunit [getpos supply,group (leader),"d = this",1,"Private"];
setPlayable soldier;

Untested, but should work..
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: making created units playable
« Reply #6 on: 31 Aug 2007, 22:40:53 »
also u shud try da addswitchableunit thingy :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta