View Full Version : Map prob
Akari
12-17-2003, 05:00 AM
How do I make a trigger that activates one of the players costom idles?
avisonjohn
12-17-2003, 05:05 AM
player->ai_pushcommand(idle,nothing,custom_idle1)
its something like that. thats just off of the top of my head
Akari
12-17-2003, 05:32 AM
ok...I LOVE YOU http://forums.3drealms.com/ubbthreads/images/graemlins/grin.gif
Akari
12-18-2003, 02:12 AM
Is it possilbe to give me the full command? thnas
Sayantan
12-18-2003, 06:35 AM
@AviJohnson :
Thats for MP2.
@ Akari :
1> Right click the trigger in the heirarchy window
2> Select the edit FSM.
3> Go to "Custom messages" and then in the "On Activate" tab put "::Room_X::Char_X->c_setidle(X, X);"
------where "Room_X" is the room where your character "Char_X" lies---------
Frankly speaking I might be wrong coz I forgot those commands. But it should be something like that. http://forums.3drealms.com/ubbthreads/images/graemlins/doh.gif
Maddieman
12-18-2003, 10:58 AM
Almost. http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif
For the player it's just:
player->c_setidle(0-4, True/False);
0-4 - depending on which custom animation you want to use (0 is standing).
True or False if you want the animation to loop or not.
With a trigger, you want:
activator->c_setidle(0-4, True/False);
Activator is the character that activates the trigger.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.