having a bit of trouble makeing a few things work on the toolset and was wondering if anyone could help me.
1. I am trying to set up a portal from one level to another and i cant seem to get it to work. Ive got Lilacs script generator and when i put in all the commands and it generates the script it looks something like this:
//Put this OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("pt_warkarea");
lTarget = GetLocation(oTarget);
//only do the jump if the location is valid.
//though not flawless, we just check if it is in a valid area.
//the script will stop if the location isn't valid - meaning that
//nothing put after the teleport will fire either.
//the current location won't be stored, either
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
SetLocalLocation(oPC, "ls_stored_loc", GetLocation(oPC));
AssignCommand(oPC, ClearAllActions());
DelayCommand(3.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
oTarget = oPC;
//Visual effects can't be applied to waypoints, so if it is a WP
//apply to the WP's location instead
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), GetLocation(oTarget));
}
When i compile it on the toolset it says that it has no problems, but when i go ingame and attept to use the portal nothing happens lol, does anyone know where it went wrong ( by the way "pt_workarea" is the tag of the portal i wont the first one to connect to. i dont have any script on the second portal. )
2. when i place a trap and go ingame to try and test it out the effect doesnt work. for example i have a IGMS trap with the polygon set out on my mod and all, but when i trip it ingame the "trap triggered" notice comes up above my pc's head but nothing else happens. do i need to place some "when a pc enters a location" script in its properties?
dont you hate it when you feel like an idiot
cheers.