![]() |
Triggeraction: Class NPC to Level NPC
Im having problems with this trigger action. Im making a script that places a block and when this block is on top of another npc (a floor switch), it triggers the switch. For some reason the RC says there arent enough params when I test it. Its strange...
Heres the block's trigger action (in an onCreated function) PHP Code:
PHP Code:
|
PHP Code:
PHP Code:
|
I did exactly those, and it doesnt work at all. -_-
Ill play around with the script a bit. |
You should use gscript2 for your setimg.
setimg("buttonpressed.png"); Make sure you're standing right next to the switch when you apply the script because that's the only way you'll really be able to test it... I suggest using onWeaponFired instead of onCreated. |
Quote:
Edit: Oh wait I thought you were using just some x and y, but I notice the 'player.x + vecx...' stuff is why he had to stand right next to it. |
Thanks guys, forgot to say it worked after some tweaking.
|
| All times are GMT +2. The time now is 08:56 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.