Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int I_SCRIPTRUNNER = 511;
- //Usage: RunArbitraryItemScript("MyScript");
- void RunArbitraryItemScript(int scriptname, untyped args)
- {
- itemdata id = Game->LoadItemData(I_SCRIPTRUNNER);
- id->Script = Game->GetItemScript(scriptname);
- for ( int q = 0; q < 8; ++q ) id->InitD[q] = args[q];
- id->RunScript();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement