need help with a script

Topics regarding Scripting with Reality Factory
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Post by bernie »

Try using ActivateTrigger("Change");
in at the start of your LowLevel("HidePawn"); routine
like this:

HidePawn[()
{
ActivateTrigger("Change");
etc...
etc...
}]
and comment out the SetEventState("Change",true); from the Die routine


that should make it work.
User avatar
vrageprogrammer
Posts: 566
Joined: Wed Oct 31, 2007 2:59 pm
Location: On top of a tree
Contact:

Post by vrageprogrammer »

hey bernie, the script seems to be working, because I added a message entity in the game which uses the trigger.
It works.
But the Level Change Doesn't work.
It was not Possible to determine the dimensions of the image....
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Post by bernie »

SetEventState(...) doesn't always work but can be in High or Low level routines whereas ActivateTrigger(...) always works but needs to be in a LowLevel routine. The buisiness of HighLevel and LowLevel routines is difficult at the best of times and can get quite messy but you just can't mix the commands.
Post Reply