yizhe wrote:Rather, i want any player that press the use button to change his skin
To change skin of initiator, you have to get the initiator slot and have different actions depending on what that value is.
In pseudocode:
- Code: Select all
set variable "init" to initiator slot
skip if "init" doesn't equal "0"
change skin of slot 0
skip if "init" doesn't equal "1"
change skin of slot 1
etc..
If you want to switch skin of player initiator based on a variable value (say you want to randomize or cycle through them), it would be:
- Code: Select all
variable char = whatever character you want to switch to
set variable "init" to initiator slot
skip if "init" doesn't equal "0"
execute #slot0.skins
skip if "init" doesn't equal "1"
execute #slot1.skins
trigger #slot0.skins
skip if "char" doesn't equal "0"
change skin of slot 0 to marine
skip if "char" doesn't equal "1"
change skin of slot 0 to cs
trigger #slot1.skins
skip if "char" doesn't equal "0"
change skin of slot 1 to marine
skip if "char" doesn't equal "1"
change skin of slot 1 to cs