AlliedModders

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

watch 02-23-2006 12:28

set_pdata_int
 
The purpose of this is to allow tfc engineers to build more than one sentry and im sorry if im a bit newb, im new to this.

I came across this line on some forums which contains the offset and value for setting the players build status

Code:

        *(word *)((char *)pEntity->pvPrivateData + 346) = 0x0000;
I've tested this and it works (also ive tried 0 instead of 0x0000 and it still works, not sure if it will have any adverse effects as im not familiar with this stuff), basically im having trouble recreating it in amxx, ive tried set_pdata_int(id,346,0) but it doesnt work and also get_pdata_int(id,346) returns 0 when i have a sentry

Quote:

(@BAILOPAN) make sure you keep in mind that set_pdata_int is 4byte aligned
(@BAILOPAN) WORD is 2 bytes, you need set_pdata_short maybe
I can't find anything about set_pdata_short apart from the JGHG2 module for amx, just wondering if it is still possible to do this, and how :o?

thanks in advance

Kraugh 02-23-2006 16:29

there is no set_pdata_short in amxx.

Twilight Suzuka 02-23-2006 16:35

YET!


All times are GMT -4. The time now is 20:13.

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