for(i = 5; i > 0; i--) //For i = 5 you can change the five to how ever many seconds you want the player to hold F for.
if(player UseButtonPressed()) //UseButtonPressed is referencing whatever button you have to press to buy doors, perks, and so on. For my controls that button is F.
I think there are problems moving structs because they don't have a body (Atleast I couldn't use them). However if you have an entity you are able to move it to a direction.
How to use MoveTo?
Wall = getEnt("walldoor", "targetname");
Wall MoveTo( Wall.origin + (200, 200, 0), speed);
This should be the same as in cod waw?
That's true, but the point is that 'self' can be anything, it's simply the variable/entity that called that function
wait 15; // counter
This is how you can do it in Cod World at War
trig = getEnt("nothing","targetname");
trig waittill("trigger", player);
weapon = player getcurrentweapon();
if(weapon == "bowie")
// do stuff
I don't know how it works in bo3 but I know how to do it in waw.
In code you have to get the trigger, when the trigger fires you have to check which weapon that player is holding. If it is the weaponName bowie knife you can let him do the rest of the code.
Yo, Did you ever get this fixed?
Im guessing you have made sure you have checked the light tick box before rendering the map?
I was wondering because im having same/similer problem. The lights I made at first show up but then I have added some more and they dont show when i test my map and its annoying me and i dont want to have to start over cos of such a simple issue.