Gate commands
#1

I dont like commands alot :P
Is it possible if a player is stood infront of the gate
and pressed the up_key, The gate would go up, The same for down?
I could get the codes im just not saw if its possible

Reply
#2

well you need to find the function for " oldkeys_newkeys " i'm not sure how it is exactly but i'm sure its something like that
Reply
#3

yes it is...

Код:
IsKeyJustDown(key, newkeys, oldkeys)
{
	if((newkeys & key) && !(oldkeys & key)) return 1;
	return 0;
}
and use PlayerToPoint to make it work for players thats close enough
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)