SithLord1993
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
News Articles
Tutorials
Forums
Downloads
Posts posted by SithLord1993
-
-
Every time when Lukes health is less than 50 game crashes, i dont know why
-
Or I should make Affect luke1 first and then add 'if' function and th restof them?
-
Something's working But...
Error:
SV_Getuserinfo:Bad Index 124??
-
Heh, I am not on this "level" of programming, is it for you a problem to show me that step by step? I would be greatful
This is second script:
rem ( "kyle_check" ); loop ( 1 ) { if ( $get( FLOAT, "SET_HEALTH")$, $<$, $50$ ) { set ( /*@SET_TYPES*/ "SET_PLAYERMODEL", "Kyle" ); }
-
Hallo, I have a problem with an "if" function. I want to make a script where when luke will be has less than 50 HP then he will change into a Kyle. I put "if" function in many ways and it not working,
Here is the Code:
( //Generated by BehavEd rem ( "luke1" ); affect ( "luke1", /*@AFFECT_TYPE*/ FLUSH ) { camera ( /*@CAMERA_COMMANDS*/ ENABLE ); camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "ref3", ORIGIN)$, 0 ); camera ( /*@CAMERA_COMMANDS*/ PAN, < 0.000 90.000 0.000 >, < 0.000 0.000 0.000 >, 0 ); camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "ref4", ORIGIN)$, 16000 ); set ( /*@SET_TYPES*/ "SET_WALKING", /*@BOOL_TYPES*/ "true" ); set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav1b" ); wait ( 16000.000 ); task ( "lukedial1" ) { sound ( /*@CHANNELS*/ CHAN_AUTO, "sound/chars/luke1/lukedia1.mp3" ); } dowait ( "lukedial1" ); //$"default"@6 set ( /*!*/ "SET_BEHAVIOR_STATE", /*!*/ "BS_DEFAULT" ); set ( /*!*/ "SET_CHASE_ENEMIES", /*!*/ "true" ); set ( /*!*/ "SET_LOOK_FOR_ENEMIES", /*!*/ "true" ); set ( /*!*/ "SET_IGNOREALERTS", /*!*/ "false" ); set ( /*!*/ "SET_WALKING", /*!*/ "false" ); set ( /*!*/ "SET_RUNNING", /*!*/ "false" ); wait ( 2000.000 ); set ( /*@SET_TYPES*/ "SET_SABERACTIVE", /*@BOOL_TYPES*/ "true" ); wait ( 20000.000 ); camera ( /*@CAMERA_COMMANDS*/ DISABLE ); if ( $get( FLOAT, "SET_HEALTH")$, $<$, $50$ ) { set ( /*@SET_TYPES*/ "SET_PLAYERMODEL", "Kyle" ); } } )
What should I Do?
"IF" Function Problem
in Coding and Scripts
Posted
With my luck all i wanted to do with that "Set Playermodel" function was check is that 'If' function is working I replaced setplayermodel with Setdismemberlimb and gues what, its working perfectly! Thank you all for your help and Time! You are great Masters of this! one more time thank you!