Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Idea for calculating position/angle?
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: Idea for calculating position/angle?

I saw the vid Mudbill...
I gtg soon, so try to make this short..
-
Istn it possible to make those area's around it.
And try to make it like this?
---
IF player is standing in area North -> disable all other area's on top of the pedestal.
IF player goes OUT the area, turn all the area's on.
SO standing in NORTH ( deactivate south west etc etc.. but leave NORTH as it is for adding the mirror there.
Might work pritty good i guess..
-----
PHP Code: (Select All)
AddEntityCollideCallback("Player""NORTH_Area""ActivateNorthAndDeactivateothers"false0); 

PHP Code: (Select All)
void ActivateNorthAndDeactivateothers(string &in asParentstring &in asChildint alState)
{
if(
alState == 1)//When INSIDE the area
{
SetEntityActive("NorthPedastal"true);//I dont know the real names you fill the in yourself.

SetEntityActive("SouthPedastal"false);
SetEntityActive("SouthEastPedastal"false);
SetEntityActive("SouthWestPedastal"false);
SetEntityActive("WestPedastal"false);
SetEntityActive("NorthwestPedastal"false);
SetEntityActive("NortheastPedastal"false);//Etc etc the area's you have in your editor.
}

if(
alState == -1)//When leaving the area
{
//Then REVERSE all of the area's when OUT of the NORTH area.
}

---
The only annoying this is you need to make 8 of these scripts...
BUT, you can sorta copy paste them and change some small area's.
(This post was last modified: 05-23-2014, 11:17 AM by DnALANGE.)
05-23-2014, 11:05 AM
Find


Messages In This Thread
Idea for calculating position/angle? - by Mudbill - 05-22-2014, 04:51 PM
RE: Idea for calculating position/angle? - by DnALANGE - 05-23-2014, 11:05 AM



Users browsing this thread: 1 Guest(s)