2 keys script - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: 2 keys script (/thread-13893.html) Pages:
1
2
|
RE: 2 keys script - FlawlessHappiness - 03-10-2012 I lost it as i edited, i got another idea and deleted it... but ill try again then... thanks anyway for helping me RE: 2 keys script - DaAinGame - 03-10-2012 (03-10-2012, 01:33 PM)flamez3 Wrote: void OnStart()If you used pasted this without changing anything in it other then the note name I see what might've been wrong. SetEntityPlayerInteractCallback("notename", "MonsterSpawm", true); MonsterSpawm > MonsterSpawn. That should make the void MonsterSpawn(string &in asEntity) work correctly. If it still doesn't work, try MonsterSpawn(string &in item) Anyone who may say that is incorrect, it works for me just fine. void spawn_func(string &in item) { SetEntityActive("servant_grunt_1", true); } That works perfectly for me. |