Script "Injection"
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 13
- Joined: March 14th, 2006, 4:19 am
- Location: Illinois, U.S.A.
- Contact:
Script "Injection"
Scripting question...
Let's say I finish a map, and 3 months later, my .map file gets erased. Let's also say I had put a few secrets into the map, but I don't remember where my triggers where. I'm wondering if it's possible to write a script, put it in my PK3, and make it find and print the coordinates of the trigger brushmodel.
Any help is appreciated.
Let's say I finish a map, and 3 months later, my .map file gets erased. Let's also say I had put a few secrets into the map, but I don't remember where my triggers where. I'm wondering if it's possible to write a script, put it in my PK3, and make it find and print the coordinates of the trigger brushmodel.
Any help is appreciated.

ODD
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- CJ Wannabe
- Posts: 13
- Joined: March 14th, 2006, 4:19 am
- Location: Illinois, U.S.A.
- Contact:
The brushmodel that acts as the trigger to open the secret.Deadly wrote:but what do u want to find the trigger or the brushmodel?
Like...
Code: Select all
main()
{
thread showCoords();
}
showCoords()
{
trig1 = getent ("trig1", "targetname");
while (1)
{
iprintln( trig1.origin )
}

ODD
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- Past/Inactive Team Member
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
There was a thread that covered this recently i think. You'll get 0,0,0 for triggers and brushmodel as they don't have an origin on they're own, unless they were given an origin.
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- CJ Wannabe
- Posts: 13
- Joined: March 14th, 2006, 4:19 am
- Location: Illinois, U.S.A.
- Contact:
-
- CJ Worshipper
- Posts: 460
- Joined: May 5th, 2005, 9:34 pm
- Location: Azeroth
- Contact: