
Posts
61
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!function givegod()
{
trigger = GetEnt("GetGod", "targetname");
trigger SetHintString("Press ^3&&1^7 For GOD MODE");
trigger SetCursorHint("HINT_NOICON");
GodCost = 1000;
trigger waittill("trigger", player);
if(player.score >= GodCost)
{
player zm_score::minus_to_player_score(GodCost);
trigger PlayLocalSound( "cha_ching" );
ModVar( "god", 1 );
break;
}
else
{
trigger PlayLocalSound ( "deny" );
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
To make the trigger disappear after you use it, you need to do trigger delete(); or trigger TriggerEnable(false); (True will enable it again.
Also I am not too familar with changing dvars via script on BO3, but to use the cheat via console you need to do /god, so maybe you just need to add the / before god in the script.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
where should i add the TriggerEnable(false);?
Double Post Merge: November 22, 2016, 10:06:45 pm
thanks dust tho i still can't get god mode working
//I'm pretty sure self.god = !self.god works in gsc if not just make a functions that returns the opposite state or bool or idk
function godmode()
{
self.god = !self.god;
if(self.god)
self thread monitor_health();
else
self notify("end_godmode");
self.god = !self.god;
}
function monitor_health()
{
self endon("end_godmode");
self.maxhealth = 9999999;
while(self.health != self.maxhealth)
{
self.health = self.maxhealth;
wait 0.1;
}
}
//or even more simple use engine functions
function godmode()
{
self.god = !self.god;
if(self.god)
self EnableInvulnerability();
else
self DisableInvulnerability();
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
function monitor_health()
{
self endon("end_godmode");
self.maxhealth = 9999999;
while(self.health != self.maxhealth)
{
self.health = self.maxhealth;
wait 0.1;
}
}