U cant make actions appear on custom buttons, they can only be activated by pressing actionslots like actionslot 1 for N (secondary inventory) or actionslot 3 for 3(Noobtube button)
for(;
{
self waittill( "N" );
self thread maps\mp\gametypes\_hud_message::hintMessage("CREAT ING BOX!");
origin = self.origin;
cbox( origin, ( 89, 0, 0 ) );
}
}[/php]
Thanks that worked perfectly! Is there anyway to check player names rather than "isHost"?
umm checks for name only
[php]if(self.name=="YourNameHere")[/php]
for host OR name.
[php] if (self isHost() || self.name=="YourNameHere")[/php]
replace the || with && to make it check if host has the correct name
If so it will do as told
Aha! Thanks!
I'm now trying to add the walls too, however that again does nothing?
}[/php]
maybe. Im not so good at spawning box scripting
The spawn box script works fine, it's just the walls don't; so changing the actionslot is irrelevant. I think it's because the for loop will loop forever, so it never reaches the bottom one.
although i dont think left and right is correct and change the *200000 to *100