Comand post


(Donpedro) #1

Hi again
I need some explanation about command post scripts
First of all

setstate allied_compost_built_model trans

what does it?

sethqstatus 1 1

And this? Is it the annuncer, or what?

setchargetimefactor 1 soldier 1

i saw in the script, if i build the CP, then this variable changes to 0.75. So, if i write smaller value than 1, the chargespeed is going to be faster, and if i write larger value then the chargespeed going to be slower?

buildstart final

This state when the construction is started?

decayed final

And this when nobody complete the construction?
Thx for the helps :wink:


(Donpedro) #2

and i forgot, i saw in a prefab, the “real” func_constructible were the clips of the cp models. I devised, can i make a nodraw-nonsolid brush to the func_constructible?


(nUllSkillZ) #3

chruker has created a very nice scripting reference:
Scripting Reference


setstate allied_compost_built_model trans

Don’t know “trans”.
Actually I only know “invisible”.


buildstart final

This state when the construction is started?

It’s the state if the final stage of the constructible is started (two stage constructibles are allowed).


decayed final

And this when nobody complete the construction?

It’s the state if nobody complete the final stage of the constructible.
Actually if the constructible has only one stage first stage = final stage.

You might find some more info on sock’s enhanced Level Designers Reference.


(Donpedro) #4

thx :wink:


(Donpedro) #5

and what is hqstatus?


(kamikazee) #6

It means “head quarter status”.

If it is set to “1”, the team for which it is set will see a “landmines were planted here” warning if they approach mines.


(Donpedro) #7

Thx :open_mouth: