OnPlayerEditObject / DynamicObject Help
#4

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
At the part where you set the IsMovingFurniture[playerid] to true.
Add this:
PHP код:
SetPVarInt(playerid"SelFurnObj"ID_OF_FURN); //Replace the ID_OF_FURN with the ID where you set the above variable to true. 
And then in the OnPlayerEditObject callback, use this:
PHP код:
new furnID GetPVarInt(playerid"SelFurnObj"); 
Hi Ahmad,
I've attempted something similar to this in the past but then I couldn't actually update the enums for that furniture, as I may have the objectid but there is no way to actually get the 'loop number' that matches the data stored for it on the enum, for example.

pawn Код:
HouseFurni[ (INDEX) ] [FurnitureX] = fX;
                                HouseFurni[ (INDEX)] [FurnitureY] = fY;
                                HouseFurni[ (INDEX)] [FurnitureZ] = fZ;
                                HouseFurni[ (INDEX)] [FurnitureRX] = fRotX;                        
                                HouseFurni[ (INDEX)] [FurnitureRY] = fRotY;
                                HouseFurni[ (INDEX)] [FurnitureRZ] = fRotZ;
If I have it linking to the objectid, how can I get the index? It's hard to explain because I think this system I have scripted won't work, as HouseFurni[MAX_FURNITURE] is impossible to get with an objectid.
Reply


Messages In This Thread
OnPlayerEditObject / DynamicObject Help - by LiamM - 13.11.2015, 11:20
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 11:48
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 11:53
Re: OnPlayerEditObject / DynamicObject Help - by LiamM - 13.11.2015, 12:16
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 12:40
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 12:49

Forum Jump:


Users browsing this thread: 2 Guest(s)