Trapping keys?

Post your scripting questions / solutions here

Moderator: Moderators

Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

setcvar g_statefile "global/obj_team3.st"

obj_team3_torso.st <- in global
obj_team3_legs.st <-in global

the .st's are filled with default info:)

map....wont load

sorry for the bother:(, ty for helping:)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

setcvar g_statefile "global/obj_team3"

Without the .st :wink:
Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

ok cool now i have it loading!

now ive tried to edit the files but i cant seem to get anything working


WALK_FORWARD : FORWARD HAS_VELOCITY ! OCKED "2"
WALK_BACKWARD : BACKWARD HAS_VELOCITY !LOCKED "2"
WALK_LEFT : STRAFE_LEFT HAS_VELOCITY !BLOCKED "2"
WALK_BACKWARD : STRAFE_RIGHT HAS_VELOCITY !BLOCKED "2"



how does it know what" FORWARD HAS_VELOCITY ! OCKED "2"" is?



i cant replace it with exec..i found that out:D..thanx for helping me.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It should say BLOCKED not OCKED :?

Anyway the part behind the : are the conditions that need to be true for a switch to the state before the : :)
Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

yeah i typed it in wrong:$

i have dinner now:(

errm these state files are weird !!

Do you have an example please?

just a little example for like when u press forward it executes a script thread or something.

i would like to add airlons aswell as a rudder to the plane mod.
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

omg omg i think i get it (been staring at this an hour or so)
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

sooo stresssed

it erros. it says i need ":"

i killed the file..hahaha
ill start again...after i go glue my hair back in
Post Reply