triggers for 'istouching' in liberation....
Posted: Mon Mar 08, 2004 2:37 am
first off... thank you bjarne for the liberation scripts for mohaa!!
now if only mine will work =)
I am making two liberation maps, set in prison type environments, one is quite far along... I want to do a bunch of redesigning but the main hurdle is getting these prison counters to work.
so triggers.... Ive not used trigger-multiple for much of anything up till now, but from looking at several maps, and reading a few things, It seems that most of them are just small boxes meant to 'go off' whenever someone approaches. Also, I gathered from the breakthrough tutorial that the trigger had to be in a 'box' basicaly though im not sure to what extent.
anyway, I made several triggers, but the basic simple one is the one im concerned with right now. In a room that consists only of 4 walls, a roof and a floor, I have a trigger-multiple with a targetname $allied_sensor1. In the thread where the trigger comes into play, is the statement...
if(local.player istouching $allied_sensor1)
should that prove true, it should print something for my reference, and incremet the number of axis in prison. I know that the script works up till then because the number of axis in the GAME is successfully incremented, but little or nothing happens when I run around my trigger.
Is there something else I have to do to my triggers? Im not sure what im missing here...
Most of my scripting for this portion is drawn directly, from the canal liberation script, and I beleive the relevant portions of it are posted in Bjarne's thread on canal.
now if only mine will work =)
I am making two liberation maps, set in prison type environments, one is quite far along... I want to do a bunch of redesigning but the main hurdle is getting these prison counters to work.
so triggers.... Ive not used trigger-multiple for much of anything up till now, but from looking at several maps, and reading a few things, It seems that most of them are just small boxes meant to 'go off' whenever someone approaches. Also, I gathered from the breakthrough tutorial that the trigger had to be in a 'box' basicaly though im not sure to what extent.
anyway, I made several triggers, but the basic simple one is the one im concerned with right now. In a room that consists only of 4 walls, a roof and a floor, I have a trigger-multiple with a targetname $allied_sensor1. In the thread where the trigger comes into play, is the statement...
if(local.player istouching $allied_sensor1)
should that prove true, it should print something for my reference, and incremet the number of axis in prison. I know that the script works up till then because the number of axis in the GAME is successfully incremented, but little or nothing happens when I run around my trigger.
Is there something else I have to do to my triggers? Im not sure what im missing here...
Most of my scripting for this portion is drawn directly, from the canal liberation script, and I beleive the relevant portions of it are posted in Bjarne's thread on canal.