A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE General Discussion »Any scripters wanna take a look?

Author Topic: Any scripters wanna take a look? (3 messages, Page 1 of 1)
Moderators: Dennis

DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Jul 11, 2009 12:54 PM    Msg. 1 of 3       
(global object_definition fist_of_rukt "weapons\fist-of-rukt\fist-of-rukt")

(script continuous fist_of_rukt
(if (and (=(unit_solo_player_integrated_night_vision_is_active)true) (= (unit_has_weapon_readied fist_of_rukt) true))
(begin
(object_cannot_take_damage (unit (list_get(players)0)))
(sleep 900)
(object_can_take_damage (unit (list_get (players)0)))
)

And now for the error time:

[script line 19] this is not a valid function or script name.: has_weapon_readied fist_of_rukt) true))

07.11.09 11:42:00 recompiling scripts after scenarios were merged.
07.11.09 11:42:00 this is not a valid function or script name.: has_weapon_readied fist_of_rukt) true))

I just wanted it were the player once they picked up the first-of-rukt and activate night-vision instead of the usual flashlight it gives them temporary invincibility :(


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Jul 11, 2009 01:25 PM    Msg. 2 of 3       
You forgot to put in which unit is being tested for having the weapon in 'unit_has_weapon_readied'. So, just change that line to:

(unit_has_weapon_readied (unit (list_get (players) 0)) fist_of_rukt)


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Jul 12, 2009 01:00 AM    Msg. 3 of 3       
It's all good I got it working :)



Nevermind...
Edited by DarkLord0912 on Jul 12, 2009 at 05:15 AM

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 5:12 PM 140 ms.
A Halo Maps Website