AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NS question (https://forums.alliedmods.net/showthread.php?t=9209)

Ramirez 01-09-2005 12:29

NS question
 
Quick question.
This is for natural-selection.
How would I go if I wanted to give the flag to walk on walls to another class?

ns_set_mask doesn't do what I tought I did..
I set the mask to stick on walls but it doesn't work..
If anyone wants to know the flag its in ns_const.inc

Any suggestions?

XxAvalanchexX 01-09-2005 16:11

The ns_const.inc says that flags are for the pev->iuser4 fields. So I'd assume this would work:

Code:
new iuser4 = entity_get_int(id,EV_INT_iuser4); iuser4 |= MASK_WALLSTICKING; entity_set_int(id,EV_INT_iuser4,iuser4);

If you wanted it shorter than this should work as well:

Code:
entity_set_int(id,EV_INT_iuser4,entity_get_int(id,EV_INT_iuser4)&MASK_WALLSTICKING);

Ramirez 01-09-2005 21:56

Thanks buddy ill try this out!
Btw, if its not too much to ask..
I kinda dont get that function pretty good..
Could you explain it to me?

Ramirez 01-09-2005 22:10

I tested it and it doesnt work :(


All times are GMT -4. The time now is 19:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.